package yaq.mini.weibo.leafwb.pojo;

import lombok.Data;

import java.io.Serializable;
import java.util.List;

@Data
public class Article implements Serializable {

    private String articleId;
    private String userId;
    private String content;
    private String releaseTime;
    private Long likeNum;
    private Long commentCount;
    private int authority;
    private User sharedUser;
    private List<Comment> commentList;
    private List<Picture> pictureList;

    public Article() {
    }

    public Article(String articleId, String userId, String content, String releaseTime, Long likeNum, Long commentCount, int authority) {
        this.articleId = articleId;
        this.userId = userId;
        this.content = content;
        this.releaseTime = releaseTime;
        this.likeNum = likeNum;
        this.commentCount = commentCount;
        this.authority = authority;
    }

}
